/* stylelint-disable at-rule-no-unknown,at-rule-empty-line-before */
@import "default";

.#{$calendar-prefix-cls}-picker-container {
  @include reset-component;
  position: absolute;
  z-index: $zindex-picker;

  &.slide-up-enter.slide-up-enter-active &-placement-topLeft,
  &.slide-up-enter.slide-up-enter-active &-placement-topRight,
  &.slide-up-appear.slide-up-appear-active &-placement-topLeft,
  &.slide-up-appear.slide-up-appear-active &-placement-topRight {
    animation-name: apesSlideDownIn;
  }

  &.slide-up-enter.slide-up-enter-active &-placement-bottomLeft,
  &.slide-up-enter.slide-up-enter-active &-placement-bottomRight,
  &.slide-up-appear.slide-up-appear-active &-placement-bottomLeft,
  &.slide-up-appear.slide-up-appear-active &-placement-bottomRight {
    animation-name: apesSlideUpIn;
  }

  &.slide-up-leave.slide-up-leave-active &-placement-topLeft,
  &.slide-up-leave.slide-up-leave-active &-placement-topRight {
    animation-name: apesSlideDownOut;
  }

  &.slide-up-leave.slide-up-leave-active &-placement-bottomLeft,
  &.slide-up-leave.slide-up-leave-active &-placement-bottomRight {
    animation-name: apesSlideUpOut;
  }
}

.#{$calendar-prefix-cls}-picker {
  @include reset-component;
  position: relative;
  display: inline-block;
  outline: none;
  transition: opacity 0.3s;

  &-input {
    outline: none;
    display: block;
  }

  &:hover .#{$calendar-prefix-cls}-picker-input:not(.#{$style-prefix}-input-disabled) {
    border-color: $calendar-picker-border-color;
  }

  &:focus .#{$calendar-prefix-cls}-picker-input:not(.#{$style-prefix}-input-disabled) {
    @include active();
  }

  &-clear,
  &-icon {
    position: absolute;
    width: 14px;
    height: 14px;
    right: $control-padding-horizontal;
    top: 50%;
    margin-top: -7px;
    line-height: 14px;
    font-size: $font-size-sm;
    transition: all .3s;
    user-select: none;
  }

  &-clear {
    opacity: 0;
    z-index: 1;
    color: $disabled-color;
    background: $input-bg;
    pointer-events: none;
    cursor: pointer;
    &:hover {
      color: $text-color-secondary;
    }
  }

  &:hover &-clear {
    opacity: 1;
    pointer-events: auto;
  }

  &-icon {
    color: $disabled-color;
    font-size: $font-size-base;
    line-height: 1;
  }

  &-small &-clear,
  &-small &-icon {
    right: $control-padding-horizontal-sm;
  }


  /* apes-other */
  .#{$style-prefix}-input-disabled {
    //background-color: #fff;
    opacity: 1;
    //cursor: text;
    color: #666;
    &:hover {
      //border-color: $input-hover-border-color;
    }
  }
}
